export const formConfig = {
  formItems: [
    {
      field: 'gradeLevel',
      label: '年级',
      type: 'select',
      placeholder: '请选择年纪',
      options: [
        {
          label: '一年级',
          value: 1,
        },
        {
          label: '二年级',
          value: 2,
        },
        {
          label: '三年级',
          value: 3,
        },
        {
          label: '四年级',
          value: 4,
        },
        {
          label: '五年级',
          value: 5,
       },
       {
        label: '六年级',
        value: 6,
       },
        {
          label: '初一',
          value: 7,
        },
        {
          label: '初二',
          value: 8,
        },
        {
          label: '初三',
          value: 9,
        },
        {
          label: '高一',
          value: 10,
        },
        {
          label: '高二',
          value: 11,
        },
        {
          label: '高三',
          value: 12,
        },
        {
          label: '大一',
          value: 13,
        },
        {
          label: '大二',
          value: 14,
        },
        {
          label: '大三',
          value: 15,
        },
        {
          label: '大四',
          value: 16,
        }
    ],
    rules: [{ required: true, message: '请选择年级!' }] 
   },
   {
    field: 'subjectId',
    label: '科目',
    type: 'select',
    placeholder: '请选择科目',
    options: [
      {
        label: '语文',
        value: 4,
      }
    ],
    rules: [{ required: true, message: '请填写科目!' }] 
   },
    {
      field: 'title',
      label: '题干',
      type: 'input',
      placeholder: '请输入题干',
      rules: [{ required: true, message: '请填写题干' }]
    },
    {
      field: 'analyze',
      label: '解析',
      type: 'input',
      placeholder: '请输入解析',
      rules: [{ required: true, message: '请填写解析' }]
    },
    {
      field: 'difficult',
      label: '难度',
      type: "rate",
      placeholder: '请选择难度',
      rules: [{ required: true, message: '请选择难度!' }]
    },    {
      field: 'score',
      label: '分数',
      type: 'numberInput',
      placeholder: '请填写分数',
      rules: [{ required: true, message: '请填写分数!' },{
        type: 'number',
        min: 0,
        message: '分数不应该为负数'
      }]
    },
  ],
  colLayout: 
    {
      xl: 24, 
      lg: 24,
      md: 24,
      sm: 24,
      xs: 24
  }
}